import store from '_store/store'

export default {
    getWechatStatus: state => {
        return state.wechat.getGetWechatSdkStu
    },
    isWechatBro: state => {
        return state.wechat.isWechatBro
    },
    productList: state => {
        if (state.productList.length === 0) {
            store.dispatch("getProductList")
        }
        return state.productList
    },
}